<?php


namespace App\Controller\api\v1;

use App\Common\Res;
use App\Controller\AbstractController;
use App\Rpc\api\impl\WeworkFriendImpl;
use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

class FriendsController extends AbstractController
{
    use Res;

    /**
     * 获取好友个人资料
     * @return array
     * @throws ContainerExceptionInterface
     * @throws NotFoundExceptionInterface
     */
    public function getFriendsInfo(): array
    {
        $params = $this->request->all();
        return ApplicationContext::getContainer()->get(WeworkFriendImpl::class)->getFriendsInfo($params);
    }







}